﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeavenCommon.DataMap;
using FortuneHeavenDAL;
using Jzy.Core.Common;

namespace FortuneHeavenBAL
{
    public class GiftOrderBO : CommonOperate<GiftOrder>
    {
   
        public GiftOrderDAL _giftDAL;
        public GiftOrderBO()
            : base()
        {
            _giftDAL = new GiftOrderDAL();
        }

        public List<GiftOrder> GetGiftOrder(int page, int size, string orderID)
        {
            return _giftDAL.GetGiftOrder(page, size, orderID);
        }

        public int GetTotalSize(string orderID)
        {
            return _giftDAL.GetTotalSize(orderID);
        }

        public void AuditItems(string ids, int aduitid)
        {
            if (!string.IsNullOrEmpty(ids) && !ids.EndsWith(","))
            {
                _giftDAL.AuditItems(ids, aduitid);
            }
        }
    }
}
